let nos = require('./nos')
let path = require('path')

try {
  nos.put_file({
    bucket: 'eva-battle-replay-tw-1',
    key: 'version2.txt',
    contentType: 'text/plain',
    filepath: path.resolve(__dirname, 'version.js')
  }, (result) => {

    console.log('ok!')
    console.log(result)
  })
} catch (err) {
  console.log("Failed with code:" + err.code)
}
